#pragma once
#include "Screen.h"
#include "MovingObject.h"



class Power:public MovingObject
{
protected: 
	bool isActived;
	int _typePower; 
	/*
	1- Flower
	2- Mushroom.
	3- Coin.
	*/
	float _timeAnimation;
	float _timeStartAnimation;
	Sprite *_spriteFlower;
	Sprite *_spriteMushroom;
	Sprite *_spriteCoin;
public:
	Power(void);
	Power(int _type);
	Power(int x, int y, int Width, int Height, float vx, float vy, int deltaTime, LPD3DXSPRITE spriteHandler, LPDIRECT3DTEXTURE9 image);
	Power(float x, float y, float vx, float vy, int deltaTime,int resourceName,CResourceManager* rm);
	~Power();
	void SetTypePower(int _type);
	void SetXY(float _eX,float _eY);
	void SetVX(float vx);
	void SetVY(float vy);
	void SetTimeAnimation(float _time);
	void Move();
	void Render();
	void RenderCoinJump();
	void SetIsActived(bool _isactived);
};